Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update custom granularity spec #340

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Update custom granularity spec #340

merged 3 commits into from
Aug 29, 2024

Conversation

courtneyholcomb
Copy link
Contributor

@courtneyholcomb courtneyholcomb commented Aug 29, 2024

Description

Rename custom_granularity_columns -> custom_granularities and add column_name property. This matches the newly-approved spec that will be added to core.
This would be a breaking change, but since this isn't used anywhere yet, nothing will break.

Checklist

Copy link
Collaborator

@tlento tlento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is column_name supposed to be part of the protocol as well? I imagine it is so we can construct the query.

@@ -28,7 +28,7 @@ def primary_column(self) -> TimeSpinePrimaryColumn:

@property
@abstractmethod
def custom_granularity_columns(self) -> Sequence[TimeSpineCustomGranularityColumn]:
def custom_granularities(self) -> Sequence[TimeSpineCustomGranularityColumn]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to add column_name to the protocol defined on line 52?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops you're right!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@courtneyholcomb courtneyholcomb merged commit 3c4caef into main Aug 29, 2024
22 checks passed
@courtneyholcomb courtneyholcomb deleted the court/custom-grain branch August 29, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants